﻿using System.Text.Json.Serialization;

namespace Acme.MeiTuan.SDK.Response
{
    [JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
    public class RetailListResult
    {
        public string? name { get; set; }
        public dynamic? description { get; set; }
        public string? app_spu_code { get; set; }
        public dynamic? price { get; set; }
        public dynamic? min_order_count { get; set; }
        public dynamic? box_price { get; set; }
        public dynamic? box_num { get; set; }
        public dynamic? unit { get; set; }
        public dynamic? category_code { get; set; }
        public string? category_name { get; set; }
        public dynamic? category_list { get; set; }
        public dynamic? secondary_category_code { get; set; }
        public dynamic? secondary_category_name { get; set; }
        public dynamic? is_sold_out { get; set; }
        public dynamic? picture { get; set; }
        public dynamic? sequence { get; set; }
        public dynamic? ctime { get; set; }
        public dynamic? utime { get; set; }
        public string? skus { get; set; }
        public dynamic? tag_id { get; set; }
        public dynamic? zh_name { get; set; }
        public dynamic? product_name { get; set; }
        public dynamic? origin_name { get; set; }
        public dynamic? isSp { get; set; }
        public dynamic? picture_contents { get; set; }
        public dynamic? flavour { get; set; }
        public dynamic? properties { get; set; }
        public dynamic? is_specialty { get; set; }
        public dynamic? video_id { get; set; }
        public dynamic? video_url_mp4 { get; set; }
        public dynamic? common_attr_value { get; set; }
    }

    [JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
    public class SkusData
    {
        public string? sku_id { get; set; }
        public string? spec { get; set; }
        public string? upc { get; set; }
        public dynamic? stock { get; set; }
        public dynamic? price { get; set; }
        public dynamic? location_code { get; set; }
        public dynamic? box_num { get; set; }
        public dynamic? box_price { get; set; }
        public dynamic? weight { get; set; }
    }

    public class SimpleRetailList
    {
        public string? app_spu_code { get; set; }
        public string? upc { get; set; }
        public string? sku_id { get; set; }
        public string? name { get; set; }
        public string? category_name { get; set; }
        public string? spec { get; set; }
    }
}
